package com.angel.web.health;


import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.SessionAttributes;

import com.angel.health.BuzDepartment;
import com.angel.provider.health.BuzDepartmentProvider;


/**
 * 科室
 * 
 * @author hanlinxiu
 *
 */

@Controller
@RequestMapping("/department")
@SessionAttributes("user")
public class BuzDepartmentController {
	
	@Resource
	BuzDepartmentProvider buzDepartmentProvider;
	

	@RequestMapping("/getAllDepartment")
	@ResponseBody
	public Map<String, Object> getAllSubject(Integer medicalId){
		
		Map<String, Object> map = new HashMap<>();
		
		BuzDepartment buzDepartment = new BuzDepartment();
		
		List<Map<String,Object>> list = buzDepartmentProvider.findAll(buzDepartment);
		
		map.put("list", list);
		
		map.put("status", "success");
		map.put("msg", "操作成功");
		
		return map;
	}
	
	
}
